home *** CD-ROM | disk | FTP | other *** search
- ; $VER: DNetGetFiles 1.4 (21.3.93)
- ; by Thomas Witt [ EMail: mozart@zelator.in-berlin.de / IRC: `Bach' ]
- ;
- ; Do the following Entries in Toolmanager 2.0:
- ;
- ; Programtype: CLI, Arguments on,
- ; Command: NewShell CON:352/402/372/80/GetFiles from S:DNetGetFiles.bat
- ; ^^^^^^^^^^^^^^
- ; Your preferabled size of the Window
- ;
- ; Set the Variable DNetDL to your preferabled directory for downloads.
- ;
- ; This File is FD
-
-
- Echo "H" NOLINE
- UnSet Filename
- SetEnv Filename "_DUMMY"
- FailAt 22
-
- Echo "DNetGetFiles by Thomas Witt"
- Wait 1
-
- GetString "Filename (CASE SENSITIVE):" VAR Filename
-
- IF $Filename EQ "_DUMMY"
- Echo "Aborted..."
- SKIP END
- EndIf
-
- IF NOT EXISTS ENV:DNetDL
- SetEnv DNetDL "RAM:"
- GetString "Download to which directory ?" STRING RAM: VAR DNetDL
- ENDIF
-
- Echo "Downloading File `$Filename' to directory $DNetDL"
-
- GetFiles -d$DNetDL $Filename
-
- IF FAIL
- Echo "File not found or DNet not running"
- ELSE
- Echo "Done, file can be found in the Directory $DNetDL"
- EndIF
-
- LAB END
-
- UnSet Filename
-
- IF $DNetDL EQ "RAM:"
- Delete >NIL: ENV:DNetDL
- EndIf
-
- Wait 2
-
- EndCLI
-